package xyz.flowlight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import xyz.flowlight.domain.entity.Cart;
import xyz.flowlight.domain.entity.Product;
import xyz.flowlight.domain.response.ResponseResult;

import java.math.BigDecimal;
import java.util.List;

@Service

public interface ProductService extends IService<Product> {
    ResponseResult<List<Product>> searchProducts(String keyword);

    ResponseResult<Void> addToCart( Integer userId, Integer productId, Integer quantity);

    List<Product> getAllProducts();

    void decreaseStock(Integer productId);
}
